define('component/main/itemMixin', [], function () {
  return {
    name: 'itemMixin',
    props: {
      parentItem: {
        type: Object,
        default: () => {
        }
      },
      theme: String,
      iconSize: Number
    },
    computed: {
      parentName() {
        return this.parentItem.name
      },
      children() {
        return this.parentItem.children
      },
      textColor() {
        return this.theme === 'dark' ? '#fff' : '#495060'
      }
    }
  }
})
